package amit.ui.table;

import java.awt.Color;
import java.awt.Insets;

import javax.swing.JTable;
import javax.swing.JViewport;
import javax.swing.table.DefaultTableColumnModel;
import javax.swing.table.TableColumn;
import javax.swing.table.TableColumnModel;
import javax.swing.table.TableModel;

/**
 * @author ido
 * 
 */
public class AdTable extends JTable {


	/**
	 * Ctor
	 * 
	 * @param model
	 */
	public AdTable(TableModel model) throws Exception {
		super(model);
		initTable();
	}

	/**
	 * 
	 * 
	 */
	private void initTable() {
		setDefaultRenderer(String.class, new AdTableRenderer());
		setCellSelectionEnabled(true);
		// Automatically configure the column widths
//		TableUtils.setColumnWidths(this, new Insets(0, 4, 0, 4), true, false);
	}

} //
